# gunicorn.py
import multiprocessing
bind = '0.0.0.0:8000'  # 绑定ip和端口号
backlog = 512  # 监听队列
timeout = 30  # 超时
keepalive = 120
worker_class = 'aiohttp.worker.GunicornUVLoopWebWorker'
workers = multiprocessing.cpu_count()   # 进程数
loglevel = 'info'  # 日志级别，这个日志级别指的是错误日志的级别，而访问日志的级别无法设置
accesslog = "log/gunicorn_access.log"  # 访问日志文件
errorlog = "log/gunicorn_error.log"  # 错误日志文件
